package com.buaa.aimall.goodsModule.Entity;

import com.baomidou.mybatisplus.annotation.*;
import com.buaa.aimall.Utils.Enum.PaymentStatus;
import lombok.Data;
import lombok.experimental.FieldNameConstants;

import java.time.LocalDateTime;

@TableName(value = "transaction_order")
@FieldNameConstants
@Data
public class TransactionOrderEntity {

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @TableField(value = "total_amount")
    private Integer totalAmount;

    @TableField(value = "status")
    private PaymentStatus paymentStatus;

    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField(value = "fk_buyer_id")
    private String buyerID;

    @TableField(value = "fk_model_coupon_id")
    private String modelCouponID;

    @TableField(value = "fk_compute_coupon_id")
    private String computeCouponID;
}
